package org.example.novel.thread;

/**
 * 本地的安全线程类
 */
public class ThreadContext {

    public static ThreadLocal<Object> authorityThreadLocal = new ThreadLocal<>();

    public static void setThreadLocal(Object o)
    {
        authorityThreadLocal.set(o);
    }

    public static Object getThreadLocal()
    {
        return authorityThreadLocal.get();
    }

    public static void removeThreadLocal()
    {
        authorityThreadLocal.remove();
    }

}
